

import TCPPort
import HTTPPort
import MYSQLPort

class Main(ModuleC)

  def main(self):
    pass

  def include(self, player):
    TCPPort.InsertMsg(pid, 1000, self.tcp_auth);

  def http_login(self, player, json):
    print 'login success'
    self.jump('success')

  def tcp_auth(self, pid, pkg):
    username = pkg.ReadUTF();
    password = pkg.ReadUTF();

    HTTPPort.Post(url = "http://www.baidu.com", params = {'username':username, 'password':password});


